<include file="Index:header" />
<import file="Common.validate.jquery#validate#min"/>
<div id="content" class="container_16 clearfix">
	<div class="btn-toolbar">
		<a href="{:U('Admin/News/index')}" class="btn">新闻列表</a>
		<a href="{:U('Admin/News/edit')}" class="btn btn-primary"><i class="icon-plus"></i>发布新闻</a>
	</div>
	<br />
	<div class="row-fluid">
		<div class="block span12">
			<form action="{:U('Admin/News/edit')}" method="post" class="kdform" id="newsform">
				<ul>
					<li><label>标题:<small>文章标题</small></label>
						<input type="hidden" name="id" value="{$data.id}" />
						<input type="text" name="title" value="{$data.title}" style="width:300px;" />
					</li>
					<li>			
						<label>内容:<small>文章内容</small></label> 
						<textarea name="content" class="editor">{$data.content}</textarea>
					</li>
					<li>
						<label><input type="checkbox" name="publish" value="1" checked="checked"/>发布:<small>如果该选项没有选中,新闻不会发布到前台</small></label>
					</li>
					<li>
						<input type="button" value="保存" class="btn" id="saveBtn"/>	
					</li>
				</ul>
				
			</form>
		</div>
	</div>
</div>

<include file="Public:editor" />
<script>
	$().ready(function() {
		$("#saveBtn").click(function(){
			formsubmit("#newsform");
		})
	});
</script>

<include file="Index:footer" />